package com.wz.dhs.model;

/**
 * @description: 错误码相关
 * @author: xia
 * @createTime: 2020/8/10  11:40
 * @version: v1.0.0
 * @param:
 * @return:
 * @update [序号][日期YYYY-MM-DD] [更改人姓名][变更描述]
 */
public enum ErrorCode
{

	AUTH_TOKEN_INVALID("100007","无效的TOKEN"),
	QRCODE_FAIL("100006","公众号授权二维码生成失败"),
	ROLE_NOT_DELETE("100005","角色有关联账号, 不能删除"),
	DEVICE_NOT_INSTALL("100004","该设备还未安装"),
	STAFF_NOT_DELETE("100003","该员工有负责的客户或未完成工单,不能删除"),
	;

    private String code;

    private String msg;

    /** 产品错误码前缀 */
    private ErrorCode(String errCode, String errMsg)
    {
        this.code = errCode;
        this.msg = errMsg;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
